package com.enniswu.weitter.user.info;

import android.graphics.Color;
import android.os.Bundle;
import android.view.View;

import com.enniswu.weitter.R;
import com.enniswu.weitter.base.BaseActivity;
import com.enniswu.weitter.entity.User;

public class UserInfoActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_info);
        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
                View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        getWindow().setStatusBarColor(Color.TRANSPARENT);
        User user = getIntent().getParcelableExtra("user");
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.fl_content, UserInfoFragment.newInstance(user))
                .commit();
    }
}
